package movie.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Cinema {
	private int scheduleId;
	
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date filmBeginTime;
	private String filmBeginTimeString;
	private Integer beginHour;
	private Integer beginMin;
	
	private Integer movieId;
	private int hallId;
	private int cinemaId;	
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date filmEndTime;
	private String filmEndTimeString;
	private Integer endHour;
	private Integer endMin;
	
	private String filmLanguage;
	private String filmVersion;
	private Integer price;
	private Film film;
	private CinemaName cinemaName;
	private Hall hall;
	
	public String getDate() {
		SimpleDateFormat format1 = new SimpleDateFormat("yyyy-MM-dd");		
		String r = format1.format(filmBeginTime);
		return r;
	}
	private String filmTime;

	public String getFilmTime() {
		return filmTime;
	}
	public void setFilmTime(String filmTime) {
		this.filmTime = filmTime;
	}
	public int getScheduleId() {
		return scheduleId;
	}
	public void setScheduleId(int scheduleId) {
		this.scheduleId = scheduleId;
	}
	public Date getFilmBeginTime() {
		return filmBeginTime;
	}
	public void setFilmBeginTime(Date filmBeginTime) {
		this.filmBeginTime = filmBeginTime;
	}
	public Integer getMovieId() {
		return movieId;
	}
	public void setMovieId(Integer movieId) {
		this.movieId = movieId;
	}
	public int getHallId() {
		return hallId;
	}
	public void setHallId(int hallId) {
		this.hallId = hallId;
	}
	public int getCinemaId() {
		return cinemaId;
	}
	public void setCinemaId(int cinemaId) {
		this.cinemaId = cinemaId;
	}
	public Date getFilmEndTime() {
		return filmEndTime;
	}
	public void setFilmEndTime(Date filmEndTime) {
		this.filmEndTime = filmEndTime;
	}
	public String getFilmLanguage() {
		return filmLanguage;
	}
	public void setFilmLanguage(String filmLanguage) {
		this.filmLanguage = filmLanguage;
	}
	public String getFilmVersion() {
		return filmVersion;
	}
	public void setFilmVersion(String filmVersion) {
		this.filmVersion = filmVersion;
	}
	public Integer getPrice() {
		return price;
	}
	public void setPrice(Integer price) {
		this.price = price;
	}
	public Film getFilm() {
		return film;
	}
	public void setFilm(Film film) {
		this.film = film;
	}
	public CinemaName getCinemaName() {
		return cinemaName;
	}
	public void setCinemaName(CinemaName cinemaName) {
		this.cinemaName = cinemaName;
	}
	public Hall getHall() {
		return hall;
	}
	public void setHall(Hall hall) {
		this.hall = hall;
	}
	public Integer getBeginHour() {
		return beginHour;
	}
	public void setBeginHour(Integer beginHour) {
		this.beginHour = beginHour;
	}
	public Integer getBeginMin() {
		return beginMin;
	}
	public void setBeginMin(Integer beginMin) {
		this.beginMin = beginMin;
	}
	public Integer getEndHour() {
		return endHour;
	}
	public void setEndHour(Integer endHour) {
		this.endHour = endHour;
	}
	public Integer getEndMin() {
		return endMin;
	}
	public void setEndMin(Integer endMin) {
		this.endMin = endMin;
	}
	public String getFilmBeginTimeString() {
		return filmBeginTimeString;
	}
	public void setFilmBeginTimeString(String filmBeginTimeString) {
		this.filmBeginTimeString = filmBeginTimeString;
	}
	public String getFilmEndTimeString() {
		return filmEndTimeString;
	}
	public void setFilmEndTimeString(String filmEndTimeString) {
		this.filmEndTimeString = filmEndTimeString;
	}
	
	
	
	
}
